<template>
    <div>
        <el-container>
            <el-aside width="256px" style="background-color: rgb(85, 85, 85);height: 720px;">
                <div class="box">学生工作管理系统</div>
                <div @click="User" class="box"><i class="el-icon-user-solid"></i>用户管理</div>
                <div @click="Power" class="box"><i class="el-icon-s-tools"></i>权限管理</div>
            </el-aside>
            <el-container>
                <el-main><router-view/></el-main>
            </el-container>
        </el-container>
    </div>
</template>
<script>
  export default {
    data () {
      return {
         name: ''
      };
    },
    methods: {
        User(){
            this.$router.push("/AdminPage/UserPage")
        },
        Power(){
            this.$router.push("/AdminPage/PowerPage")//连续两次点击同一个子路由跳转会报错的问题还未解决
        }
    }
  };
</script>
<style>
.box{
    border: 1px solid white;
    height: 100px;
    color: white;
    text-align: center;
    line-height: 100px;
    font-size: 20px;
}
</style>